<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<tiles:importAttribute/>
<html>
<head>
<title>JFEED TEST</title>
<style type="text/css">
#feedTitle{
	text-align:center;
}
#feedBody {
    background: none repeat scroll 0 0 -moz-field;
    border: 1px solid threedshadow;
    margin: 2px auto;
    background-color:#efd;
}
#feedContent .entry{
	border:1px solid #eee;
	padding:0 10px;
}
#feedContent .entry h3{
	background-color:#eee;
}
.rssUrl{
	width:360px;
}
.rssStatus{
	color:red;
}
</style>
</head>
<body>
     <div id="${PORTLET_INSTANCE_ID }" class="module moduleStandard moduleCollapsible" portletId="${PORTLET_INSTANCE_ID } ">
                    <!-- portlet head -->
                    <div class="moduleHeader" >
                        <div class="moduleHeaderContent clear">
                                <div class="title-link">
                                <a>${title }</a>
                            </div>           
                        </div>
                    </div>
                    <!-- portlet body -->
                    <div class=moduleBody style="border:1px solid #eee;">
                        <div class="moduleBodyContent" id="PORTLET_INSTANCE_ID">
                       		<div>
						        Please Input what you want RSS!
						        <input class="rssUrl" type="text" value="http://sl.iciba.com/rss.php?rtype=dailysentence"/>
						        <input class="GetRSS" type="submit" value="GET RSS"/>
						        <input class="AddRSS" type="submit" value="ADD RSS"/>
						    </div>
						    <div class="rssStatus">
						       
						    </div>
						    <div class="rssList">
						       
						    </div>
						    <div id="feedBody">
						        <div id="feedTitle">
						        </div>
						        <div id="feedContent">
						        </div>
						    </div>
                        </div>
                   </div>
                   <div class=roundedCorners>                   
                            <div class=roundedCorners-inner></div>           
                    </div>
                </div>
</body>
<script type="text/javascript">
$(function(){
	rss.reader.setup('${PORTLET_INSTANCE_ID }');
	$('#${PORTLET_INSTANCE_ID} .GetRSS').click();
});
</script>

</html>